x11: Only update cursors if we have any
authorMatthias Clasen <mclasen@redhat.com>
Fri, 13 Dec 2019 19:46:00 +0000 (14:46 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 13 Dec 2019 19:46:00 +0000 (14:46 -0500)
commitbf2c29a36a979e3e09f3e54d96c33714ea23b162
tree03ebbab3f5e63671209965ca16c1131f5d0ebdd4
parent6ddc214e6845f26366825d77481af54c691679f9
x11: Only update cursors if we have any

We were accessing an on-demand created hash table
without checking if it had been created first.

Fixes: https://gitlab.gnome.org/GNOME/gtk/issues/2308
gdk/x11/gdkcursor-x11.c